function columns1(vm) {
  const cols = [
    {
      title: '考核项目',
      width: 100,
      children: [
        {
          title:'名称',
          dataIndex: 'projectName',
          key: 'projectName',
          width:150,
          customRender: (text, record, index) => {
            const obj = {
              children: text !== null ? text : "",
              attrs: {},
            };
            obj.attrs.rowSpan = vm.mergeCells(
              text,
              vm.dataSource,
              "projectName",
              index
            );
            return obj;
          },
        },
        {
          title:'类型',
          dataIndex: 'typeName',
          key: 'typeName',
          width:150,
          customRender: (text, record, index) => {
            const obj = {
              children: text !== null ? text : "",
              attrs: {},
            };
            obj.attrs.rowSpan = vm.mergeCells(
              text,
              vm.dataSource,
              "typeName",
              index
            );
            return obj;
          },
        }
      ]
    },
    {
      title: '分值',
      dataIndex: 'totalScore',
      key: 'totalScore',
      width: 70,
      // customRender: (text, record, index) => {
      //   const obj = {
      //     children: text !== null ? text : "",
      //     attrs: {},
      //   };
      //   obj.attrs.rowSpan = vm.mergeCells(
      //     text,
      //     vm.dataSource,
      //     "totalScore",
      //     index
      //   );
      //   return obj;
      // },
    },
    {
      title: '考核内容',
      dataIndex: 'checkContent',
      key: 'checkContent',
      width: 200,
    },
    {
      title: '记分标准',
      dataIndex: 'scoreNorm',
      key: 'scoreNorm',
      width: 200,
      customRender: (text, record, index) => {
        return vm.setBr(text, record, 'scoreNorm', index)
      }
    },
    {
      title: '三级企业自评',
      align: 'center',
      width: 240,
      children: [
        {
          title: '得分',
          align: 'center',
          width: 210,
          children: [
            {
              title: '加分',
              align: 'center',
              width: 70,
              dataIndex: 'thirdAdd',
              scopedSlots: { customRender: 'thirdAdd' },
              key: 'thirdAdd'
            },
            {
              title: '扣分',
              align: 'center',
              width: 70,
              dataIndex: 'thirdBuckle',
              scopedSlots: { customRender: 'thirdBuckle' },
              key: 'thirdBuckle'
            },
            {
              title: '小计',
              align: 'center',
              width: 70,
              dataIndex: 'thirdTotal',
              scopedSlots: { customRender: 'thirdTotal' },
              key: 'thirdTotal'
            }
          ],
        },
        {
          title: '说明',
          align: 'center',
          width: 200,
          dataIndex: 'thirdRemarks',
          scopedSlots: { customRender: 'thirdRemarks' },
        },
      ]
    },
    {
      title: '二级企业评分',
      align: 'center',
      width: 240,
      children: [
        {
          title: '得分',
          align: 'center',
          width: 210,
          children: [
            {
              title: '加分',
              align: 'center',
              width: 70,
              dataIndex: 'secondAdd',
              scopedSlots: { customRender: 'secondAdd' },
              key: 'secondAdd'
            },
            {
              title: '扣分',
              align: 'center',
              width: 70,
              dataIndex: 'secondBuckle',
              scopedSlots: { customRender: 'secondBuckle' },
              key: 'secondBuckle'
            },
            {
              title: '小计',
              align: 'center',
              width: 70,
              dataIndex: 'secondTotal',
              scopedSlots: { customRender: 'secondTotal' },
              key: 'secondTotal'
            }
          ],
        },
        {
          title: '说明',
          align: 'center',
          width: 200,
          dataIndex: 'secondRemarks',
          scopedSlots: { customRender: 'secondRemarks' },
        },
      ]
    },
    {
      title: '股份公司考评',
      align: 'center',
      width: 240,
      children: [
        {
          title: '得分',
          align: 'center',
          width: 210,
          children: [
            {
              title: '加分',
              align: 'center',
              width: 70,
              dataIndex: 'oneAdd',
              scopedSlots: { customRender: 'oneAdd' },
              key: 'oneAdd'
            },
            {
              title: '扣分',
              align: 'center',
              width: 70,
              dataIndex: 'oneBuckle',
              scopedSlots: { customRender: 'oneBuckle' },
              key: 'oneBuckle'
            },
            {
              title: '小计',
              align: 'center',
              width: 70,
              dataIndex: 'oneTotal',
              scopedSlots: { customRender: 'oneTotal' },
              key: 'oneTotal'
            }
          ],
        },
        {
          title: '说明',
          align: 'center',
          width: 200,
          dataIndex: 'oneRemarks',
          scopedSlots: { customRender: 'oneRemarks' },
        },
      ]
    }

  ]
  return cols
}

export default columns1